package com.xinfan.tank;

/**
 * @Author xin
 * @Date 2022/5/31 15:44
 * @Version 1.0
 */
public class MyTank extends Tank {

    //com.xinfan.tank.Bullet bullet = null;
    //Vector<com.xinfan.tank.Bullet> bullets = new Vector<>();

    /*public com.xinfan.tank.Bullet getBullet() {
        return bullet;
    }

    public void setBullet(com.xinfan.tank.Bullet bullet) {
        this.bullet = bullet;
    }*/

    public MyTank(int x, int y) {
        super(x, y);

    }

    /*public void shot() {
        switch (getDirection()) {

            case 0:
                bullet = new com.xinfan.tank.Bullet(getX()+20,getY(),getDirection());

                break;
            case 1:
                bullet = new com.xinfan.tank.Bullet(getX()+60,getY()+20,getDirection());

                break;
            case 2:
                bullet = new com.xinfan.tank.Bullet(getX()+20,getY()+60,getDirection());

                break;
            case 3:
                bullet = new com.xinfan.tank.Bullet(getX(),getY()+20,getDirection());

                break;
        }
        new Thread(bullet).start();
        bullets.add(bullet);

    }
*/





}
